const express = require('express')
const router = express.Router()
const expressJoi = require('@escook/express-joi')
const notice_handler = require('../router_handler/notice')
const {add_notice_schema, delete_notice_schema} = require('../schema/notice')


router.post('/addnotice', expressJoi(add_notice_schema), notice_handler.addNotice)

router.get('/noticelist', notice_handler.noticeList)

router.post('/deletnotice', expressJoi(delete_notice_schema), notice_handler.deleteNotice)


module.exports = router